<?php
/**
 * 
 */

/**
 * 
 */

/**
 * Useful Debugging Functions
 *
 * @author anthony
 */
final class debugger {
    
    /**
     * Not in Use
     */
    private function __construct() {}
    /**
     * Not in use
     */
    private function __destruct() {}
    
    /**
     *  Display the contents of an array pre'd
     */
    static public function preOutArray($array) {
	if(is_object($array) === false && is_array($array) === false) {
	    // Recoverable, but warn them anyway
	    trigger_error('Argument 1 passed to '.__CLASS__.'::'.__METHOD__.' must be an object or array, '.gettype($array).' given.', E_USER_NOTICE);
	}
	echo '<pre>'.print_r($array, true).'</pre>';
    }
}

?>
